package priv.mill.model;

//import com.sun.mail.handlers.handler_base;

public class Book {
	private String name;
	private double price;
	private String auth;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getAuth() {
		return auth;
	}
	public void setAuth(String auth) {
		this.auth = auth;
	}
	public Book(String name, double price, String auth) {
		super();
		this.name = name;
		this.price = price;
		this.auth = auth;
	}
	public Book() {

	}
	public boolean equals(Object obj) {
		Book obook=(Book) obj;
		return name.equals(obook.name);
	}
	public int hashCode() {
		return this.name.hashCode();
	}
}
